package com.ruoyi.system.domain;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 活动试题对象 buz_task_question
 * 
 * @author ruoyi
 * @date 2023-08-27
 */
@Data
public class BuzTaskQuestion extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private String id;

    /** 活动ID */
    @Excel(name = "活动ID")
    private String buzTaskId;

    /** 题目 */
    @Excel(name = "题目")
    private String ask;

    /** 题目类型(0:判断;1:单选:2:多选) */
    @Excel(name = "题目类型(0:判断;1:单选:2:多选)")
    private Integer questionType;

    /** 正确答案 */
    @Excel(name = "正确答案")
    private String answerKey;

    /** 答案解析 */
    @Excel(name = "答案解析")
    private String questionMemo;

    /** 题目图片 */
    @Excel(name = "题目图片")
    private String aksImg;

    private List<BuzTaskOption> buzTaskOptions;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("buzTaskId", getBuzTaskId())
            .append("ask", getAsk())
            .append("questionType", getQuestionType())
            .append("answerKey", getAnswerKey())
            .append("questionMemo", getQuestionMemo())
            .append("aksImg", getAksImg())
            .toString();
    }
}
